package designpattern.single.HungryMan;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Client {
    public static void main(String[] args) {
        new Thread(() -> {
            HungryManSingleton instance = HungryManSingleton.getInstance();
            System.out.println("instance1   "+instance);
        }).start();

        new Thread(() -> {
            HungryManSingleton instance = HungryManSingleton.getInstance();
            System.out.println("instance2   "+instance);
        }).start();
    }
}
